import { Base } from '../utils/base.js';

class Group extends Base {
    constructor() {
        super();
    }
	//到店分类
	  get_daodian_cate(callback) {
		var params = {
		  url: 'daodian/getcate',
		  type:'get',
		  loading:true
		};
		this.apiRequest(params,callback);
	  }
	 //到店列表
	  get_daodian_list(data,callback) {
	    var params = {
	      url: 'daodian/getList',
	      type:'get',
	      data:data,
	      loading:true
	    };
	    this.apiRequest(params,callback);
	  }
	    //到店详情
	    get_daodian_detail(data,callback) {
	      var params = {
	        url: 'daodian/detail',
	        type:'get',
	        data:data,
	        loading:true
	      };
	      this.apiRequest(params,callback);
	    }
	    //评论列表
	    get_comment_list(data,callback) {
	      var params = {
	        url: 'daodian/getCommentList',
	        type:'get',
	        data:data,
	        loading:true
	      };
	      this.apiRequest(params,callback);
	    }
	 //到店支付前数据
	 get_prev_order(data,callback) {
	  var params = {
	    url: 'daodian/prevOrder',
	    type:'get',
	    data:data,
	    loading:true
	  };
	  this.apiRequest(params,callback);
	}    
	 //到店支付下单
	 create_order(data,callback) {
	  var params = {
	    url: 'daodian/createOrder',
	    type:'post',
	    data:data,
	    loading:true
	  };
	  this.apiRequest(params,callback);
	}   
	 //到店订单列表
	 get_order_list(data,callback) {
	  var params = {
	    url: 'daodian/orderList',
	    type:'get',
	    data:data,
	    loading:true
	  };
	  this.apiRequest(params,callback);
	}  
	//删除
	order_del(data,callback) {
	  var params = {
	    url: 'daodian/orderDel',
	    type:'get',
	    data:data,
	    loading:true
	  };
	  this.apiRequest(params,callback);
	}  
	//取消
	order_cancel(data,callback) {
	  var params = {
	    url: 'daodian/orderCancel',
	    type:'get',
	    data:data,
	    loading:true
	  };
	  this.apiRequest(params,callback);
	}
	//核销详情
	 hexiao_info(data,callback) {
	  var params = {
	    url: 'daodian/hxInfo',
	    type:'get',
	    data:data,
	    loading:true
	  };
	  this.apiRequest(params,callback);
	}
	//核销详情
	 hx(data,callback) {
	  var params = {
	    url: 'daodian/hx',
	    type:'get',
	    data:data,
	    loading:true
	  };
	  this.apiRequest(params,callback);
	}
	//取消
	cancel(data,callback) {
	  var params = {
	    url: 'daodian/orderCancel',
	    type:'get',
	    data:data,
	    loading:true
	  };
	  this.apiRequest(params,callback);
	}
	//添加到店产品
	add_daodian(data,callback) {
	  var params = {
	    url: 'daodian/add',
	    type:'post',
	    data:data,
	    loading:true
	  };
	  this.apiRequest(params,callback);
	}
	//我的店铺团购产品
	get_my_store_daodian_list(data,callback) {
	  var params = {
	    url: 'daodian/myStoreDaodianList',
	    type:'get',
	    data:data,
	    loading:true
	  };
	  this.apiRequest(params,callback);
	}
	//我的店铺团购产品详情
	get_my_store_daodian_detail(data,callback) {
	  var params = {
	    url: 'daodian/myStoreDaodianDetail',
	    type:'get',
	    data:data,
	    loading:true
	  };
	  this.apiRequest(params,callback);
	}
	//修改我的店铺团购产品
	set_my_store_daodian(data,callback) {
	  var params = {
	    url: 'daodian/myStoreDaodianUpdate',
	    type:'post',
	    data:data,
	    loading:true
	  };
	  this.apiRequest(params,callback);
	}
}

export { Group };
